﻿using System.ComponentModel.DataAnnotations;

namespace CodeFirstRelationMapping.Models
{
    public class Comment
    {
        public int Id { get; set; }

        [Required(ErrorMessage = "Name is Required.")]
        public string Name { get; set; }
        public string Url { get; set; }
        public string CommentText { get; set; }
        public bool? RememberMe { get; set; }

        [Required]
        public virtual Post Post { get; set; }
    }
}